﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import flash.utils.*;

    public class SPlacardMainInfo extends IMessageBase
    {
        public var playerInfo:Dictionary;
        public var cd:int;
        public const _type:int = 160;
        public static var _regist:SPlacardMainInfo = new SPlacardMainInfo(true);

        public function SPlacardMainInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SPlacardMainInfo();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            DictDisplayPlayerHelper.write(param1, this.playerInfo);
            param1.writeInt(this.cd);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.playerInfo = DictDisplayPlayerHelper.read(param1);
            this.cd = param1.readInt();
            return;
        }// end function

    }
}
